﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Ресторан</title>

    @System.Web.Optimization.Styles.Render("~/bundles/layoutcss")

</head>
<body>
    <div id="wrapper">
        <nav class="navbar navbar-default navbar-cls-top " role="navigation" style="margin-bottom: 0">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".sidebar-collapse">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="@Url.Action("Index", "Home")">
                    @if (User.IsInRole("User"))
                    {
                        @: Пользователь
					}
                    else if (User.IsInRole("Admin"))
                    {
                        @: Администратор
					}
                    else if (User.IsInRole("Manager"))
                    {
                        @: Менеджер
					}
                    else
                    {
                        @: Бухгалтер
					}
                </a>
            </div>
            <div style="color: white;
padding: 15px 50px 5px 50px;
float: right;
font-size: 16px;">
                Вы вошли под пользователем @User.Identity.Name &nbsp; @Html.ActionLink("Выход", "Logout", "Account", null, new { @class = "btn btn-danger square-btn-adjust" })
            </div>

        </nav>
        <!-- /. NAV TOP  -->
        <nav class="navbar-default navbar-side" role="navigation">
            @{Html.RenderPartial("~/Views/Shared/Menu.cshtml");}
        </nav>
        <!-- /. NAV SIDE  -->
        <div id="page-wrapper">
            <div id="page-inner">
                <div class="row">
                    <div class="col-md-12">
                        @RenderBody()
                    </div>
                </div>
                <!-- /. ROW  -->
                <hr />

            </div>
            <!-- /. PAGE INNER  -->
        </div>
        <!-- /. PAGE WRAPPER  -->
    </div>
    <!-- /. WRAPPER  -->
    <!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
    <script>
        @if (TempData["error"] != null)
        {
            string message = (TempData["error"] as string).Replace(Environment.NewLine, "");
            @: alert("@message");
        					        }
    </script>
    @System.Web.Optimization.Scripts.Render("~/bundles/layout")
    @RenderSection("scripts", false)

</body>

</html>
